package springbootrest.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author acy
 * @Date 2019/05/19
 */
@RestController
public class HelloWorldRestController {
	@GetMapping(value = "/hello-world")
	public String helloWorld(@RequestParam(required = false)String messages){
		return "hello world"+messages;
	}
}
